﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

using InfFront.InfoViews.WPF;

namespace InfFront.Demo
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private RootInfoSource infoSet = null;

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var wnd = new MainWindow();
            infoSet = new RootInfoSource();
            infoSet.testDataSet.ReadXml("TestDataSetData.xml");
            wnd.SetSource(infoSet);
            wnd.Show();
        }

        private void Application_Exit(object sender, ExitEventArgs e)
        {
            infoSet.testDataSet.WriteXml("TestDataSetData.xml");
        }
    }
}
